package com.kaifamiao.wendao.entity;

import java.time.LocalDateTime;

public class Comment {
    // 对象标识符( Object Identifier )
    private Integer id ;
    // 评论的内容
    private String content ;
    // 评论的发布地址
    private String publishIp ;
    // 评论的发布时间
    private LocalDateTime publishTime ;
    // 被赞成数量
    private Integer thumbsUp;
    // 被反对数量
    private Integer thumbsDown;
    // 评论的发布者
    private Customer publisher ; // 维护从 Comment 到 Customer 的 多对一 关联关系
    // 评论的话题(即该评论评的是哪个话题)
    private Topic topic ; // 维护从 Comment 到 Topic 的 多对一 关联关系

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublishIp() {
        return publishIp;
    }

    public void setPublishIp(String publishIp) {
        this.publishIp = publishIp;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public Integer getThumbsUp() {
        return thumbsUp;
    }

    public void setThumbsUp(Integer thumbsUp) {
        this.thumbsUp = thumbsUp;
    }

    public Integer getThumbsDown() {
        return thumbsDown;
    }

    public void setThumbsDown(Integer thumbsDown) {
        this.thumbsDown = thumbsDown;
    }

    public Customer getPublisher() {
        return publisher;
    }

    public void setPublisher(Customer publisher) {
        this.publisher = publisher;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }
}
